package net.xyz.dropitem;

import java.io.File;

import org.bukkit.configuration.file.YamlConfiguration;



public class Config {
		private static  YamlConfiguration config;
		
		public static YamlConfiguration getConfig(){
			  return config;
		  }
		 public static void  createConfig(){	    
			  File locFile=new File(DropItem.getInstance().getDataFolder(),"config.yml");
			  if(!locFile.exists()){
				  try {
					  DropItem.getInstance().saveDefaultConfig();
				} catch (Exception e) {
					DropItem.getInstance().getLogger().info("sssssssssssss");;
				}  			  
			  }
			  config=YamlConfiguration.loadConfiguration(locFile);
		  }
}
